package app.vendorportal.api.marketplace;

import app.vendorportal.api.marketplace.data.request.QueryInventoryBySkuRequest;
import app.vendorportal.api.marketplace.data.request.QueryInventoryRequest;
import app.vendorportal.api.marketplace.data.response.QueryInventoryBySkusResponse;
import app.vendorportal.api.marketplace.data.response.QueryInventoryResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author vince
 */
public interface InventoryQueryAPIService {

    @RequestMapping(value = "/market/inventories/query", method = RequestMethod.POST)
    @ResponseBody
    QueryInventoryResponse queryInventory(QueryInventoryRequest request);

    @RequestMapping(value = "/market/inventories/query-by-sku", method = RequestMethod.POST)
    @ResponseBody
    QueryInventoryBySkusResponse queryInventoryBySkus(QueryInventoryBySkuRequest request);
}
